//首页产品类型
import request from '@/utils/request';

// 查询首页产品类型列表
export function homeProductTypeList(data) {
  return request({
    url: '/system/home/product/type/list',
    method: 'post',
    data
  })
}

// 添加分类
export function addHomeProductType(data) {
  return request({
    url: '/system/home/product/type',
    method: 'post',
    data
  })
}

// 修改分类
export function updateHomeProductType(data) {
  return request({
    url: '/system/home/product/type',
    method: 'put',
    data
  })
}

// 删除分类
export function delHomeProductType(data) {
  return request({
    url: '/system/home/product/type/batchDelete',
    method: 'post',
    data
  })
}

// 查询子类列表
export function childrenList(data) {
  return request({
    url: '/system/home/product/type/children/list',
    method: 'post',
    data
  })
}
